home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / comm / mail / mailer_deamon.lha / MAILER-DEAMON.txt < prev   
Text File  |  1997-03-13  |  7KB  |  230 lines

  1. THE MAILER DEAMON !
  2. ===================
  3.  
  4. Who does not know the following problem:
  5.  
  6. You have a real nice batched SMTP (BSMTP) mailbox with the possibility to
  7. have multiple e-mail addresses. Well, you say.. that's great! (I said so
  8. myself). So, you installed the InetUtils V4 (with SMTPPost, SMTPD etc) and was
  9. very happy with it. You tested some e-mail addresses and decided to check
  10. some fake e-mail address which did not exist on your beloved Amiga. 
  11. Humtie-dum, starting pine, C(ompose), tralala, To:
  12. myfakeadres@myinternetsite.computer.com, writing some bla-bla text and
  13. press X to send the whole bunch to your Amiga. Well, that's coming back,
  14. cause no myfakeadres exist.. or..??? Indeed, SMTPD did it's work, SMTPPost
  15. did her work too, and delivered the whole bunch of e-mail in UUMAIL: 
  16. as user: myfakeadres. Well, I did not configure that user in Amitcp, so
  17. how did it come there... Horrible nightmares of unlimited emails to
  18. unlimited users came at night. In the morning I decided to install the
  19. MultiUser Filesystem (MuFS) along with a beautiful program: Maildeliver. 
  20. I printed out the manual, read something about patching the FastFileSystem 
  21. in the L: directory, so I started up a shell, typed dir L: to look for the
  22. FFS and .... nothing... So, no patching since the whole thing resides 
  23. obviously in ROM :((. I could not find it anywhere on my disks or CD-ROMS,
  24. so, no MuFS for me. Well, I still had very bad dreams at night, I saw my
  25. harddisk filled with lots and lots and lots of e-mails to lots and lots of
  26. users ...., and therefore only one solution was left: writing my own 
  27. MAILER-DEAMON to stop having severe sleeping problems. And the little
  28. program called MAILER-DEAMON is the result.
  29.  
  30.  
  31.  
  32. What do you need? (or: requirements)
  33. ====================================
  34.  
  35. - Batched SMTP             (contact your provider!)
  36. - SMTPD                    (from the InetUtils v4)
  37. - SMTPPost                 (from the InetUtils v4)
  38. - RSMTPPost                (just copy SMTPPost to RSMTPpost) 
  39. - StartSMTPD script        (from the InetUtils v4)
  40. - AmiTCP 4.x
  41.  
  42.  
  43. How to install
  44. ==============
  45.  
  46. 1) Put the MAILER-DEAMON in Amitcp:bin/
  47.  
  48. 2) put SMTPPost from the INetUtils1.4 in Amitcp:bin/
  49.  
  50. 3) copy SMTPPost to RSMTPPost
  51.  
  52. 4) load the StartSMTPd script in your favourite texteditor, you should see
  53.    this:
  54.  
  55.  
  56.         SetEnv SMTPMailDir    INet:Mail/
  57.         SetEnv SMTPSpoolDir    INet:MailSpool/
  58.         SetEnv SMTPSmarterHost    dummy
  59.         SetEnv SMTPRMail    SMTPpost -r
  60.         SetEnv SMTPRoute    mx,smarterhost,smtp,uucp
  61.         run <>nil: SMTPd
  62.  
  63. 5) Change the dummy into your providers SMTP mail host, mostly something like
  64.    mail.provider.com. 
  65.  
  66. 6) Change the SMTPpost -r into: MAILER-DEAMON
  67.  
  68. 7) Save it somewhere in your path. Make sure that the S bit is set.
  69.  
  70. 8) Add some assigns in your s:user-startup, so load it in your texteditor:
  71.  
  72.         Assign UULIB:    usr:lib    (or wherever you want to store it)
  73.         Assign UUNEWS:   usr:news   (idem)
  74.         Assign UUMAIL:   usr:mail   (idem)
  75.         Assign UUSPOOL:  usr:spool  (idem)
  76.  
  77.         SetEnv SENDMAIL         amitcp:bin/MAILER-DEAMON
  78.  
  79.         SetEnv NODENAME         <your node name>
  80.         SetEnv DOMAINNAME       <yourprovider.com>
  81.         SetEnv HOST             <your hostname>
  82.         SetEnv HOSTNAME         <your hostname>
  83.  
  84.         setenv EDITOR   ced -keepio
  85.  
  86.         setenv MAILEDITOR $EDITOR
  87.  
  88.    If you want news, you have to make the proper assigns here too.
  89.  
  90. 9) Configure your mailer. You can use the MAILER-DEAMON without SMTPD, it
  91.    checks your local mail adresses and does know if an e-mail address
  92.    have to be spooled for sending it later when you are online. Your mailer
  93.    needs to support the SMTPPost program. So, change everything that points
  94.    to SMTPPost to MAILER-DEAMON. (but this is not nessecary to do, it's
  95.    just an option if you want to check your local mail too.
  96.   
  97.  
  98. 10) Configure some new users in AmiTCP.
  99.  
  100. 11) Add some aliases in the UULIB:aliases file like: 
  101.  
  102.     albertv: postmaster, pietjepuk
  103.     pietjepuk: root
  104.     uucp:      jantje
  105.     etc, etc.
  106.  
  107. 12) Startup your internet connection
  108.  
  109. 13) type 'startsmtpd' in a shell
  110.  
  111. 14) send some mail from another host to yourself
  112.  
  113. 15) wait and see....
  114.  
  115.  
  116. If all things are ok, the MAILER-DEAMON should run fine now. It checks if a
  117. user is valid by looking in the Amitcp:db/passwd file, if nothing is found
  118. there it checks the UULIB:aliases, if nothing is there it checks the
  119. INET:db/aliases file. If the MAILER-DEAMON finds a user, it invokes the
  120. rsmtppost program to actually deliver the mail (why should I invent the
  121. wheel twice?). If it does not find a user in any of these files, it sends
  122. immediately a message back to the sender with the message: User unknown.
  123.  
  124. The same procedure is followed when you are offline. It checks if a user
  125. exist on your localhost and send it accordingly (or send it back to you
  126. if the user does not exist). If a message arrives for the internet the
  127. MAILER-DEAMON starts Smtppost with the -Q argument. 
  128.  
  129.  
  130. BUGS
  131. ====
  132.  
  133. I did not test it with a news configuration, so be careful when using news.
  134. If you find any bugs send it to:
  135.  
  136.                  mailer-bugs@spinnewiel.xs4all.nl
  137.  
  138.  
  139. This is a really quick hack, so expect that some bugs will show up, although it
  140. runs fine with me, but you never know with configurations other than mine.
  141.  
  142. The MAILER-DEAMON does not check the cc: and bcc: fields yet. But if the
  143. need is there to implement that, I will.
  144.  
  145.  
  146. VERSION
  147. -------
  148.  
  149. V1.0
  150.  
  151.  
  152. THANKS TO
  153. =========
  154.  
  155. - Wouter van Oortmerssen for his superb E-language
  156.  
  157.  
  158. DISTRIBUTION
  159. ============
  160.  
  161.  This software is freely distributable. The distribution is permitted under
  162.  the following conditions:
  163.  
  164.  - All associated files included with the distribution archive are to
  165.    remain intact and unaltered.
  166.  
  167.  - The distribution over BBS's, Internet, software libraries like the ones
  168.    from Fred Fish or Aminet CD-ROM's and similar electronic channels is
  169.    granted.
  170.  
  171.  - disc-magazines, service providers and all other publishers who want to
  172.    include the YUAdmin program on their disks, CD-ROMS or other media,
  173.    need to have my permission in case of a commercial distribution.
  174.   
  175.  - Commercial use of the MAILER-DEAMON is forbidden unless permission is granted
  176.    by A.Vortman. Contact me at: mailer-info@spinnewiel.xs4all.nl 
  177.  
  178. DISCLAIMER
  179. ==========
  180.  
  181.  This software is provided as-is, without warranty of any kind, either
  182.  expressed or implied. In no event will the author be liable for direct,
  183.  indirect, incidental or consequential damages or data loss resulting from
  184.  the use or application of this software. The entire risk as to the results
  185.  and performance of this software is assumed by the user.
  186.  
  187.  
  188. FUTURE
  189. ======
  190.  
  191. I'll wait and see if things are wanted. If I find the time I will implement
  192. your idea's.
  193.  
  194.  
  195. LAST WORDS
  196. ==========
  197.  
  198. Well, I really hope that the Amiga will have better multiuser support in
  199. the future along with a decent crontab (-e ;), task management etc. I have
  200. seen some Windows NT servers and I really think that the Amiga can do
  201. better... much better. To help things a little I will put some effort in
  202. porting programs to the amiga. One of the projects that is running now
  203. is the Apache Server project (http://www.dsdelft.nl/~apache). Apache is
  204. ported by Jeff Shepherd (who made contributions to ixemul and compiled
  205. pine, pico, imapd, ipopd etc). It's a great server with professional
  206. capabilties. Imagine what you can do with the help of sh and rexx...
  207. So... Watch out for more thing to happen! Or better.... join!
  208.  
  209. and for now: Enjoy the MAILER-DEAMON!
  210.  
  211. Bert.
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.